package com.grj.parkingsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户车辆表
 * @TableName t_vehicle
 */
@TableName(value ="t_vehicle")
@Data
public class Vehicle implements Serializable {
    /**
     * 车辆ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 车牌号
     */
    @TableField(value = "license_plate")
    private String licensePlate;

    /**
     * 车辆类型(轿车/SUV/货车等)
     */
    @TableField(value = "vehicle_type")
    private String vehicleType;

    /**
     * 车辆颜色
     */
    @TableField(value = "color")
    private String color;

    /**
     * 是否默认车辆(0:否,1:是)
     */
    @TableField(value = "is_default")
    private Integer isDefault;

    /**
     * 绑定时间
     */
    @TableField(value = "bind_time")
    private Date bindTime;

    /**
     * 状态(0:解绑,1:已绑定)
     */
    @TableField(value = "status")
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}